<?php
    $arguments['title'] = "设备型号";
    $arguments['location'] = array(
        "首页",
        "服务",
        "设备型号",
        );
    $arguments['css'] = array(
        PUBLIC_LIB.'css/core/main.css',
        PUBLIC_LIB.'css/biz/table.css',
        PUBLIC_LIB.'css/biz/form.css',
        PUBLIC_LIB.'fonts/hui_iconfont/iconfont.css',
        PUBLIC_LIB.'js/core/Pagination/kkpager_orange.css',
        PUBLIC_LIB.'js/core/fancybox/jquery.fancybox-1.3.4.css',
        );
    $arguments['js'] = array(
        //PUBLIC_LIB.'js/jquery/jquery-1.4.2.min.js',
        PUBLIC_LIB.'js/core/fancybox/jquery-1.7.1.js',
        PUBLIC_LIB.'js/core/Dropdownlist/chosen.jquery.js',
        PUBLIC_LIB.'js/core/Pagination/kkpager.min.js',
        PUBLIC_LIB.'js/biz/pagelist.js', 
        PUBLIC_LIB.'js/core/DatePicker/WdatePicker.js',
        PUBLIC_LIB.'js/biz/custominput.js',  
        PUBLIC_LIB.'js/core/Tooltip/tooltip.js',
        PUBLIC_LIB.'js/jquery/jquery-ui-1.11.4.custom/jquery-ui.js',
        PUBLIC_LIB.'js/core/fancybox/jquery.fancybox-1.3.4.js',
        PUBLIC_LIB.'js/core/fancybox/jquery.fancybox-1.3.4.pack.js',
        PUBLIC_LIB.'js/biz/ajaxfun.js',
        PUBLIC_LIB.'js/biz/equiptypeList.js',      
        );
    
    importHeader($arguments);
?>

    <div class="formtitle"><span>设备型号</span></div>
    <div class="search">
    	
        <form action="" method="post" id="form">
        <input type="hidden" id="workId" value="workId">
        <p>
            <div class="label_title">
                <label for="equipType_id">设备型号id:</label>
            </div>
            <div class="search_text">
                <input  type="text" class="dfinput search_width" id="equipType_id" name="equipType_id" value=""/>
            </div>
            <div class="label_title">
                <label for="equip_class">设备类别:</label>
            </div>
            <div class="search_text">
                <select class="dfinput search_width" id="equip_class" name="equip_class">
                        <option value="">全部</option>
                        <option  value="agv">agv</option>
                        <option value="料车">料车</option>
                        <option value="充电桩">充电桩</option>
                </select>    
            </div>
            
            <button type="button" class="tool tool_left" id="search" style="width:100px;"><i class="Hui-iconfont">&#xe683;</i>查询</button>
            <!-- <div class="tool tool_btn" id="addWorkarea"><i class="Hui-iconfont">&#xe600;</i>新增</div> -->
            <button type="button" class="tool tool_left" id="addUnitType" style="width:100px;"><i class="Hui-iconfont">&#xe600;</i>新增</button>
        </p>
        <p>
            <div class="label_title">
                <label for="equipType">设备型号:</label>
            </div>
            <div class="search_text">
                <input  type="text" class="dfinput search_width" id="equipType" name="equipType" value=""/>
            </div>
            <div class="label_title">
                <label for="current_state">状态:</label>
            </div>
            <div class="search_text">
                <select class="dfinput search_width" id="current_state" name="current_state">
                        <option value="">全部</option>
                        <option  value="1">可用</option>
                        <option value="0">不可用</option>
                        <option value="9">已删除</option>
                </select>    
            </div>
        </p>
    	</form>
    	        
    </div>
    <div class="table_box tablelist">
    	<table width="100%">
            <tr>
            	<th width="20%">设备型号id</th>
            	<th width="15%">设备类别</th>
                <th width="20%">设备型号</th>
                <th width="20%">状态</th>
                <th width="25%">操作</th>
            </tr>
        </table>
        <table width="100%">
            <tr>
                <td width="20%">00776x</td>
                <td width="15%">(2,3)</td>
                <td width="20%">(2,3)</td>
                <td width="20%">(2,3)</td>
                <td width="25%">
                    <a href=""><div class="tools tool_left" id="detail"><i class="Hui-iconfont">&#xe695;</i>详情</div></a>
                    <a href=""><div class="tools tool_left" id="mainTypeEdit"><i class="Hui-iconfont">&#xe60c;</i>编辑</div></a>
                    <a href="javascript:mainTypeDelete();"><div class="tools tool_left"><i class="Hui-iconfont">&#xe609;</i>删除</div></a>
                </td>
            </tr>
        <?php
            if(isset($result)&&!empty($result->list)&&count($result->list)>0){
                $i=0;
                foreach($result->list as $content){
                    $i++;
        ?>
            <tr>
                <td width="15%"><?php echo $content->orderNo;?></td>
                <td width="15%"><?php echo $content->orderType;?></td>
                <td width="30%"><?php echo $content->orderNo;?></td>
                <td width="40%">
                	<a href="/order/detailorder/?param=<?php echo $content->orderId;?>&type=<?php echo $content->orderType;?>"><div class="tools tool_left" id="detail"><i class="Hui-iconfont">&#xe695;</i>详情</div></a>
                	<a href="javascript:editOrder('<?php echo $content->orderId;?>','<?php echo $content->orderType;?>');"><div class="tools tool_left"><i class="Hui-iconfont">&#xe60c;</i>编辑</div></a>
                	<a href="javascript:deleteOrder('<?php echo $content->orderId;?>');"><div class="tools tool_left"><i class="Hui-iconfont">&#xe609;</i>删除</div></a>
                </td>
            </tr> 
       <?php
        }
    }else{
       ?>
            <tr><td colspan="8"><?php echo isset($noAuth)?$noAuth:'没有查询到任何工作区信息';?></td></tr>
        <?php
            }
        ?>
        </table>
    </div>
    <div class="pager" id="kkpager" data-total="<?php
    if(empty($result->list)){
        echo 1;
    }else{
        echo $result->page;
    }
    ?>"></div>
    <?php importFooter();?>
